﻿using System.Diagnostics;
using System.Reflection;
using System;
using Telerik.Windows.Controls;

namespace Daq.Views
{
    /// <summary>
    /// AboutView.xaml 的交互逻辑
    /// </summary>
    public partial class AboutView : RadWindow
    {
        public AboutView()
        {
            InitializeComponent();
            //this.Icon = new Image()
            //{
            //    Source = new BitmapImage(new Uri("../Images/关于.png", UriKind.Relative))
            //};
            Assembly assembly = Assembly.GetExecutingAssembly();
            // 获取程序集版本
            Version assemblyVersion = assembly.GetName().Version;
            Console.WriteLine($"程序集版本: {assemblyVersion}");
            
            DateTime buildTime = System.IO.File.GetLastWriteTime(this.GetType().Assembly.Location);
            tbVersion.Text = $"{assemblyVersion}  {buildTime}";
        }
    }
}
